package com.yami.shop.bean.enums;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum FileType {
    /**
     * 文件类型
     */
    IMAGE("image", 1024 * 1024 * 5),  // 图片5MB限制
    VIDEO("video", 1024 * 1024 * 50); // 视频50MB限制

    private String type = null;
    private long maxSize = 0;

    FileType(String image, int i) {
        this.type = image;
        this.maxSize = i;
    }
}
